package cn.tedu.springdemo.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

/**
 * 毛笔
 */
@Component
@ConditionalOnMissingBean(name = "pencil")
public class Brush implements Pen {
    @Override
    public String toString() {
        return "毛笔";
    }
}
